package com.study.userserviceprovider.pingExtend;

import com.netflix.loadbalancer.IPing;
import com.netflix.loadbalancer.Server;

/**
 * 此类描述的是： 对ping其他服务的扩展
 * @author: 李军荣
 * @version: 2020/11/19 14:11
 */
public class MyPing implements IPing {

    @Override
    public boolean isAlive(Server server) {
        System.out.println("isAlive"+server.getHost()+":"+server.getPort());
        return true;
    }
}
